<me:UIAB50 x:Class="WPFExcelReport.TAB50"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization" 
                    xmlns:MCO="clr-namespace:WPFExcelReport;assembly=TICC_ABPOS_MCO"
                    xmlns:GW="clr-namespace:WPFExcelReport;assembly=TGABEW" 
                    Background="White"  
                    x:Name="TV"
                    Loaded="Window_Loaded"
     >
    <me:UIAB50.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:UIAB50.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"></ColumnDefinition>
            <ColumnDefinition Width="Auto"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <StackPanel Grid.Row="0" Grid.Column="0">
            <WrapPanel>
                <TextBlock Text="{Binding Source={Localization:Translate Word=单号}}"></TextBlock>
                <TextBlock Text="{Binding ABPAUFKRS,Source={StaticResource ResourceKey=vwMaster}}" Width="Auto" />
                <TextBlock Text="{Binding Source={Localization:Translate Word=-}}"></TextBlock>
                <TextBlock Text="{Binding ABPAUFLFD,Source={StaticResource ResourceKey=vwMaster},Converter={StaticResource ResourceKey=pnum}}" Width="Auto" />
                <TextBlock Text="{Binding Source={Localization:Translate Word=-}}"></TextBlock>
                <TextBlock Text="{Binding ABPAUFPOS,Source={StaticResource ResourceKey=vwMaster},Converter={StaticResource ResourceKey=pnum}}" Width="Auto" />
            </WrapPanel>
            <WrapPanel>
                <TextBlock Text="{Binding Source={Localization:Translate Word=计划:}}"></TextBlock>
                <TextBlock Text="{Binding ABPSOLLMENGE5,Source={StaticResource ResourceKey=vwMaster},Converter={StaticResource ResourceKey=d100}}" Width="Auto" />
                <TextBlock Text="{Binding Source={Localization:Translate Word=产量:}}"></TextBlock>
                <Button Grid.Column="0" Height="20"  Width="24" Margin="0,0,0,0"   IsEnabled="True" Click="ShowDetail_Click">
                    <Button.Background>
                        <ImageBrush  ImageSource="/ImagePackage;component/Images/Convert.png" />
                    </Button.Background>
                </Button>
                <TextBlock Text="{Binding ABPEAKG,Source={StaticResource ResourceKey=vwMaster},Converter={StaticResource ResourceKey=d100}}" Width="Auto" />
            </WrapPanel>
        </StackPanel>
        <GW:TGBBS13 Name="cBS13" Grid.Row="0" Grid.Column="1"   AUF="{Binding AUF,ElementName=TV}" Visibility="{Binding IsShowOutPut,ElementName=TV,Converter={StaticResource bv}}"/>
    </Grid> 
</me:UIAB50>
